package com.yuexun.beilunpatient.ui.contractmanage.adapter;

import android.widget.AbsListView;
import android.widget.ImageView;
import android.widget.TextView;

import com.yuexun.beilunpatient.R;
import com.yuexun.beilunpatient.ui.contractmanage.bean.VideoListBean;
import com.yuexun.beilunpatient.ui.inspect.bean.CheckRow;

import org.kymjs.kjframe.widget.AdapterHolder;
import org.kymjs.kjframe.widget.KJAdapter;

import java.util.Collection;

/**
 * Created by Administrator on 2019/4/1 0001.
 */

public class VideoAdapter extends KJAdapter<VideoListBean.DatasBean.DataBean.DataListBean> {


    public VideoAdapter(AbsListView view, Collection<VideoListBean.DatasBean.DataBean.DataListBean> mDatas, int itemLayoutId) {
        super(view, mDatas, itemLayoutId);
    }

    @Override
    public void convert(AdapterHolder adapterHolder, VideoListBean.DatasBean.DataBean.DataListBean dataListBean, boolean b) {
        TextView testlist_item_statu = (TextView) adapterHolder.getView(R.id.testlist_item_status);
        ImageView ic_arrow = (ImageView) adapterHolder.getView(R.id.ic_arrow);
        adapterHolder.setText(R.id.testlist_item_name, "项目名称：" + dataListBean.getProcedureName()+dataListBean.getServiceSectID());
        adapterHolder.setText(R.id.testlist_item_status, dataListBean.getResultStatus());
        adapterHolder.setText(R.id.testlist_item_time, "检查时间:" + dataListBean.getObservationDate());

    }
}
